<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- v-model用在多选框就代表是选中或不选中 -->
      <!-- true代表选中，false代表不选中 -->
      <input type="checkbox" v-model="chk" />同意

      <hr />
      <h3>以下是绑定一个数组</h3>
      <input v-model="list" type="checkbox" value="羽毛球" />羽毛球
      <input v-model="list" type="checkbox" value="乒乓球" />乒乓球
      <input v-model="list" type="checkbox" value="保龄球" />保龄球
      <input v-model="list" type="checkbox" value="你算个球" />你算个球
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data () {
          return {
            chk: true,
            list: []
          }
        },
        methods: {}
      })
    </script>
  </body>
</html>
